luci-mod-network: fix handleAdd in wireless.js
authorPaul Donald <[email protected]>
Tue, 1 Apr 2025 12:28:03 +0000 (14:28 +0200)
committerPaul Donald <[email protected]>
Tue, 1 Apr 2025 16:10:30 +0000 (18:10 +0200)
commit6c061b644c1380b841542f44179195756cc5a645
tree00aae46c1c5432418457b5d91da2e9b290eee0ff
parentcdce600aaec66f762f18d608c74cbf3abcafe1c7
luci-mod-network: fix handleAdd in wireless.js

handleAdd did not work correctly for a while: some state was not cleaned
up (try: wireless -> add -> no changes -> click dismiss -> press save).

The state is now properly removed when pressing dismiss, by stashing
addedSection correctly under the map m and not in this.

Also requires a null check in render_modal_status.

Signed-off-by: Paul Donald <[email protected]>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js